home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / snip0493.zip / ISPOW2.C < prev    next >
C/C++ Source or Header  |  1993-04-05  |  233b  |  13 lines

  1. #include <stdio.h>
  2.  
  3. int another_function(int x) { return! ((~(~0U>>1)|x)&x -1) ;}
  4.  
  5. int main(void)
  6. {
  7.       int i;
  8.  
  9.       for (i = 0; i < 256; ++i)
  10.             printf("%3d: %d\n", i, another_function(i));
  11.       return 0;
  12. }
  13.